﻿using System.Net;
using System.Web.Mvc;

namespace PortalWeb.Controllers
{
    public class ErrorController : Controller
    {
        //
        // GET: /Error/
        public ActionResult HttpError()
        {
            return View("Error");
        }

        public ActionResult NotFound()
        {
            Response.StatusCode = (int) HttpStatusCode.NotFound;

            // TODO: insert ILogger here

            return View("Error");
        }

        public ActionResult Index()
        {
            return RedirectToAction("Index", "Home");
        }
	}
}